package com.ghh.mapper;

import com.ghh.domain.Goods;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsMapper {
    /**
     * 查询所有
     */
    @Select("select * from goods")
    @Results(
            @Result(property = "specStr",column = "spec")
    )
     List<Goods> findAll();
}
